# Maintainer: Zach DeCook <zachdecook@librem.one>
pkgname=mpd-mpris
pkgver=0.4.1
pkgrel=5
pkgdesc="Implementation of the MPRIS protocol for MPD."
url="https://github.com/natsukagami/mpd-mpris"
arch="all"
license="MIT"
makedepends="go"
source="https://github.com/natsukagami/mpd-mpris/archive/v$pkgver/mpd-mpris-v$pkgver.tar.gz"
options="!check" # no tests

export GOFLAGS="$GOFLAGS -modcacherw -trimpath"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go build ./cmd/mpd-mpris
}

package() {
	install -Dm755 mpd-mpris -t "$pkgdir"/usr/bin
}

sha512sums="
8e7c4dd11acee6f3779e747271d51ad2ac387287046e454f767a6d5622fded0cdaa6af629160a349ca43e5196029364c1803eb98e3c39cefffd5818fa05b4fcc  mpd-mpris-v0.4.1.tar.gz
"
